
<%@page import="DTO.Administrador"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <%
       //Obtiener la sesion
       HttpSession sesion = request.getSession();
       Administrador admin = (Administrador) session.getAttribute("Administrador");
       //Valida el usuario 
       if(admin != null){ %>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Menú principal</title>
        <link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="css/menu.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="css/default.css" />
        <link rel="shortcut icon" href="img/sign.ico"  type="image/x-icon"   />

        <script type="text/javascript" src="js/js_common.js"></script> 
        
        <script language="javaScript">
            //Nueva pagina  
            function newPage(url)
            {
                window.open(url,"","algun parametro que desees");
            }
          
            //Otra image
            image0 = new Image();
            image0.src = "img/img01.png";

            image1 = new Image();
            image1.src = "img/img02.png";
          
            image2 = new Image();
            image2.src = "img/img03.png";
          
            function resaltarImagen(){
                var imgId = document.getElementsByTagName("img01");
                imgId.className ="resaltaImagen";
            }
        
        </script>
    </head>
    <body bgcolor="#FFFFCC">
        <div id="wrap">
            <div id="top">
                <h2>Menú principal</h2> 
                <div style="margin-left: 40%;margin-bottom: 3.6%;"> <h1>Usuario:<%= admin.getNombre() %></h1> </div>
                <a href="javascript:cerrar_sesion()">Cerrar sesión</a>
            </div>

            <div style="color: #ffffff; margin-left:2%; font-size: 1.6em;">
                <script type="text/javascript" >
                    document.write(Muestrafecha()); 
                </script>
            </div>
            <div id="content">
                <div style="margin-left:100px; margin-top: 12%;" >
                    <div id="right">
                        <table id="tablaMenu">
                            <tr >
                                <td >
                                    <div style="margin-left: 45px;">
                                        <p><strong>Registrar Paciente</strong></p>
                                        <div style="margin-left: 18px;">   
                                            <p><a href="RegistroFichaPaciente.jsp">
                                                    <img name="image0"
                                                    src="img/ficha.png" border="0" width="125" height="125" 
                                                    onmouseout=";this.style.backgroundColor='#eee';this.width=119;this.height=119;" onmouseover="this.style.backgroundColor='#eee';
                                                        this.width=130;this.height=130;" id="img" ></a></p> </div> </div>
                                </td>
                                <td></td>
                                <td>
                                    <p><strong>Buscar Paciente</strong></p>
                                    <div style="margin-left: 5px;">  
                                        <p><a href="Busqueda_Paciente.jsp">
                                                <img name="image1"
                                                      src="img/img03.png" border="0" width="125" height="125" 
                                                         onmouseout=";this.style.backgroundColor='#eee';this.width=119;this.height=119;" onmouseover="this.style.backgroundColor='#eee';
                                                             this.width=130;this.height=130;" id="img" ></a> </p> </div>
                                </td>
                            </tr>
                        </table>
                    </div>

                    <div style="float:left; margin-left: 330px;">
                      <!--  <input id="back1" name="back1" class="button" type="button" value="Atrás"  onclick="parent.location='MenuP.jsp'"/> -->
                    </div>

                </div>
            </div>
            <div style="margin-top: 40%;"></div>
            <!--<div id="clear"></div>-->
        </div>  <br />  <br />  
         <div id="footer">
            <footer>
                <div><img src="img/footer_img.png" height="39" width="960" border="0"></div>
                <h4>
                    <a href="MapaSitio.jsp">MAPA DEL SITIO</a> | 
                    <a href="Desarrolladores.jsp" accesskey="H" onClick="popup = window.open('Desarrolladores.jsp', 'PopupPage','height=550,width=600,scrollbars=yes,resizable=no'); return false" target="_blank" onMouseOver="window.status='';  return true" onMouseOut="window.status=''; return true"onFocus="window.status='';  return true" onBlur="window.status=''; return true"  class="submenulinktext2">DESAROLLADORES</a> | 
                    <a href="Ayuda.jsp" accesskey="H" onClick="popup = window.open('Ayuda.jsp', 'PopupPage','height=550,width=600,scrollbars=yes,resizable=no'); return false" target="_blank" onMouseOver="window.status='';  return true" onMouseOut="window.status=''; return true"onFocus="window.status='';  return true" onBlur="window.status=''; return true"  class="submenulinktext2">AYUDA</a>
                </h4>
                <div class="ftext"> Tel:(506) 2246-3279 <br/> sapcomed &copy;  Todos los derechos reservados. Prohibida la reproducción total o parcial.</div>
            </footer>
        </div>
    </body>
    <%  }  %>
</html>

<!-- (Version de menu solamente con busqueda y registro de pacientes ) -->